package ic.doc.co2nudge.client.widgets;

import java.util.Iterator;

import com.google.gwt.user.client.ui.*;;

public class LogInPanel extends Composite {
	
	//class members
	VerticalPanel vertPanel=new VerticalPanel();
	HorizontalPanel horPanel=new HorizontalPanel();
	
	Label lblUserName=new Label("User Name");
	Label lblPassword=new Label("Password");
	Label lblMessage=new Label();
	
	TextBox txtUserName=new TextBox();
	PasswordTextBox txtPassword = new PasswordTextBox();
	
	CheckBox chbRememberUser=new CheckBox("Remember me");
	
	Button btnSubmit=new Button("Submit");
	Button btnCancel=new Button("Cancel");
	
	//constructor
	public LogInPanel(){
		
		buildUI();
	}

	protected void buildUI(){
		vertPanel.add(lblUserName);
		vertPanel.add(txtUserName);
		vertPanel.add(lblPassword);
		vertPanel.add(txtPassword);
		vertPanel.add(chbRememberUser);
		vertPanel.add(lblMessage);
		
		horPanel.add(btnSubmit);
		horPanel.add(btnCancel);
		vertPanel.add(horPanel);
		
		initWidget(vertPanel);
		
	}
}
